import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { CloudinaryModule } from './cloudinary/cloudinary.module';
import { FeishuModule } from './feishu/feishu.module';
import { WechatModule } from './wechat/wechat.module';
import { TasksModule } from './tasks/tasks.module';

@Module({
  imports: [
    ConfigModule.forRoot({
      isGlobal: true,
      envFilePath: '.env',
    }),
    CloudinaryModule.register({
      cloud_name: 'dd9qnkvsf',
      api_key: '172715397522499',
      api_secret: '7f0U32TThPUYeDBbVOPT4yf8nPM', // 请替换为您的 API 密钥
    }),
    FeishuModule,
    WechatModule,
    TasksModule,
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}
